package com.manlitech.cloudboot.baseboot.mapper;
/*
 *Created by Intellij IDEA.
 *User:  Shensg
 *Date:  2021/2/25
 */

import com.alibaba.fastjson.JSONObject;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * @author Administrator
 */
public interface TestMapper extends BaseMapper<Test> {
    /** 使用默认数据库*/
    @Select("${sql}")
    List<JSONObject> executeSqlMaster(@Param("sql")String sql);

    /** 使用指定数据库*/
    @Select("${sql}")
    @DS("IKBS")
    List<JSONObject> executeSqlSlave(@Param("sql")String sql);

}
